public class Main {
    public static void main(String[] args) {
        EmployeeList employeeList = new EmployeeList();
        employeeList.addEmployee(new FulltimeEmployee());
        employeeList.addEmployee(new ParttimeEmployee());

        FADepartment faDepartment = new FADepartment();
        employeeList.accept(faDepartment);

        HRDepartment hrDepartment = new HRDepartment();
        employeeList.accept(hrDepartment);
    }
}